#ifndef __OC_NetcdfWrapper_H__
#define __OC_NetcdfWrapper_H__

#include "NetCDFDef.h"
#include "OCVolume/VolumeOptions.h"
#include "OCVolume/GridData.h"
#include "NcWrapper.h"
#include "NetcdfGribReader.h"
#include "NetcdfNcReader.h"

namespace OCPP
{
	class _netCDFExport NetcdfWrapper
	{
	public:
		~NetcdfWrapper();
		bool open(String fileName);
		void close();
		void extract(String var, const Volume::VolumeOptions& options,int desiredLevel);
		Volume::GridDataVec read(String var, const Volume::VolumeOptions& options,int desiredLevel);
	private:
		GridFileReaderPtr ncWrapper;
	};
};

#endif